import React, { Component } from 'react'

export default class News extends Component {
  state = {
    newsList: [
      '今天北京下雨了',
      '前段时间北京也下了大暴雨',
      '其实大暴雨没到那么可怕的成都',
    ],
  }
  render() {
    // return <div> News route compoent </div>
    return (
      <ul>
        {this.state.newsList.map((news, index) => (
          <li key={index}>{news}</li>
        ))}
      </ul>
    )
  }
}
